OCLOperators JsonGetProp

The JsonGetProp operator is for JSON strings and returns the value of a JSON property as a string. Null is returned if the property is unavailable.

The JsonGetProp operator can be chained to get a nested JSON value.

Example: 1

'{name: "Samuel"}'.JsonGetProp('name')

Returns

'Samuel'

Example: 2

'{person: {name: "Samuel", age: 25}}'.JsonGetProp('person').JsonGetProp('age')

Returns

25

See also:

This page was edited 16 days ago on 12/13/2024. What links here